package ink.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ozone_price")
public class OzonePrice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 机器价格表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 价格1
     */
    @TableField("one_price")
    @NotNull
    @Min(1)
    private BigDecimal onePrice;

    /**
     * 时间1(秒)
     */
    @TableField("one_time")
    @NotNull
    @Min(1)
    private Integer oneTime;

    /**
     * 价格2
     */
    @TableField("two_price")
    @NotNull
    @Min(1)
    private BigDecimal twoPrice;

    /**
     * 时间2
     */
    @TableField("two_time")
    @NotNull
    @Min(1)
    private Integer twoTime;

    /**
     * 价格3
     */
    @TableField("three_price")
    @NotNull
    @Min(1)
    private BigDecimal threePrice;

    /**
     * 时间3
     */
    @TableField("three_time")
    @NotNull
    @Min(1)
    private Integer threeTime;


}
